<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <meta name="description" content="" />
    <meta name="author" content="" />
    <!--[if IE]>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <![endif]-->
    <title>发表文章</title>
    <link href="https://cdn.bootcss.com/font-awesome/4.2.0/css/font-awesome.css" rel="stylesheet" />
    <link href="http://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.8/summernote.css" rel="stylesheet">
    <#include "../include.ftl">
</head>
<body>
<#include "../header.ftl">
    <div class="container">

        <div class="row">
            <div class="col-md-9">
                <div class="form-group">
                    <label for="firstname" class="control-label">博客标题</label>
                    <input type="text" class="form-control" id="title" name="title"placeholder="请输入博客标题" autocomplete="no">
                </div>
                <div class="form-group">
                    <label for="firstname" class="control-label">所属板块</label>
                        <select class="form-control" name="plateid" id="plateid">
                            <option value="">--所属板块--</option>
                                    <#list plates as l>
                                       <option value="${l.id}">${l.name}</option>
                                    </#list>
                        </select>
                </div>
                <div class="form-group">
                    <label for="firstname" class="control-label">内容</label>
                    <div id="summernote"></div>
                </div>
                <div class="form-group">
                    <div class="alert alert-success" role="alert" id="loginTips" style="display: none"></div>
                </div>
                <div class="form-group">
                    <button type="button" class="btn btn-outline-primary" id="blogSubmit">提交</button>
                </div>
            </div>
            <br>
            <#include "../right.ftl">
        </div>
    </div>

<#include "../footer.ftl">
<script src="http://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.8/summernote.js"></script>
<script src="/js/blog/add_blog.js"></script>
</body>
</html>
